home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / cjustify.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  665 b   |  28 lines

  1. <!--- This example shows how to use CJustify --->
  2. <CFPARAM name="jstring" default="">
  3.  
  4. <CFIF IsDefined("form.justifyString")>
  5.     <CFSET jstring = Cjustify("#form.justifyString#", 35)>
  6. </CFIF>
  7. <HTML>
  8. <HEAD>
  9. <TITLE>
  10. CJustify Example
  11. </TITLE>
  12. </HEAD>
  13.  
  14. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  15. <BODY  bgcolor="#FFFFD5">
  16. <H3>CJustify Example</H3>
  17.  
  18. <P>Enter a string, and it will be center justified within
  19. the sample field
  20.  
  21. <FORM ACTION="cjustify.cfm" METHOD="POST">
  22. <P><INPUT TYPE="Text" VALUE="<CFOUTPUT>#jString#</CFOUTPUT>" SIZE=35 NAME="justifyString">
  23. <P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
  24. </FORM>
  25.  
  26. </BODY>
  27. </HTML>       
  28.